package com.example.service;

import com.example.entity.Notice;
import com.example.entity.example.NoticeExample;

import java.util.List;

public interface NoticeService {
    List<Notice> getAll();

    List<Notice> getByExampleWithLimit(String name, String title, String username, Integer page, Integer limit);

    int getCountByExample(String name, String title, String username);

    Notice getById(Integer id);

    void removeById(Integer id);

    void updateSelectiveById(Notice notice);

    void addNotice(Notice notice);
}
